<?php

include '../DB/dbConnection.php';

$result=array();

if ($_POST){
	
	$sql = "INSERT INTO standard(id,name,school_id) VALUES ('0', '".$_POST['name']."', '".$_POST['school_id']."')";
	$res = mysqli_query($conn, $sql);

	if($res)
		$result['error']=false;
	else
		$result['error']=true;
}
else
{
	$result['error']=true;
}

$conn->close();	

echo json_encode($result);
?> 
